import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * Created by larry on 2016/10/31.
 */
public class Test {

    public static Date getDateWithOutTime(Date date){

        SimpleDateFormat sf = new SimpleDateFormat("yyyy-MM-dd");
        Date dateWithOutTime = null;

        try {
            dateWithOutTime = sf.parse(sf.format(date));
        } catch (ParseException e) {
            throw new IllegalArgumentException("获取系统日期异常", e);
        }
        return dateWithOutTime;
    }

    public static void main(String[] args) {

       // Long.valueOf(System.currentTimeMillis() + 3000)).booleanValue();

    }
}
